package light.mvc.model.voter;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import light.mvc.model.base.IdEntity;
@Entity
@Table(name="t_finish_voter")
@DynamicInsert(true)
@DynamicUpdate(false)
public class Tfinishvoter extends IdEntity implements Serializable {
	
	private Long vi_id;
	private Long user_id;
	private Date createdate;
	public Tfinishvoter() {
		// TODO Auto-generated constructor stub
	}
	
	public Tfinishvoter(Long viId, Long userId, Date createdate) {
		super();
		vi_id = viId;
		user_id = userId;
		this.createdate = createdate;
	}

	@Override
	public String toString() {
		return "Tfinishvoter [createdate=" + createdate + ", user_id="
				+ user_id + ", vi_id=" + vi_id + "]";
	}

	public Long getVi_id() {
		return vi_id;
	}
	public void setVi_id(Long viId) {
		vi_id = viId;
	}
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long userId) {
		user_id = userId;
	}
	public Date getCreatedate() {
		return createdate;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

}
